<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/7/21
 * Time: 9:36
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\common\validate;


use think\Validate;

class SpecsValue extends Validate
{
    protected $rule = [
        "specs_id" => "require|integer",
        "title" => "require"
    ];
    protected $message = [
        "specs_id.require" => "系统内部异常！请稍后重试",
        "specs_id.integer" => "系统内部异常",
        "title.require" => "规则名称不能为空"
    ];
    protected $scene = [
        "add" => ['specs_id', 'title']
    ];
}